if (typeof (mediator) == 'undefined')
	mediator = {};

if (typeof (mediator.teachingsStudiesCount) == 'undefined')
	mediator.teachingsStudiesCount = {};

mediator.teachingsStudiesCount.AppView = function(options) {
	var settings = $.extend({
		teachingsCount : 0,
		studiesCount : 0
	}, options || {});
	var self = this;

	self.teachingsCount = ko.observable(settings.teachingsCount);
	self.studiesCount = ko.observable(settings.studiesCount);

	return this;
};

mediator.teachingsStudiesCount.renderView = function() {
	$('#teachingsCount').attr('data-bind' , 'text : teachingsCount');
	$('#studiesCount').attr('data-bind' , 'text : studiesCount');
};

mediator.teachingsStudiesCount.createViewMediator = function(teachingsCount,
		studiesCount) {
	
	var appView = mediator.teachingsStudiesCount.AppView({
		teachingsCount : teachingsCount,
		studiesCount : studiesCount
	});
	mediator.teachingsStudiesCount.renderView();

	return appView;
}
